package com.joey.order.service;

import com.joey.order.entity.GoodsCategory;
import com.joey.order.mapper.GoodsCategoryMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: Joey
 * @Description:
 * @date:2024/6/9 23:54
 */
@Service
@Slf4j
public class TestServiceImp implements TestService{

    @Autowired
    private GoodsCategoryMapper goodsCategoryMapper;


    @Override
    public List<GoodsCategory> TestToSend() {
        List<GoodsCategory> categories = goodsCategoryMapper.queryTest();
        System.out.println(categories);
        return categories;
    }

    @Override
    public String TestToSend2() {
        return "消息来自order-service1";
    }

    @Override
    public String TestToSend3() {
        log.error("service2正在被调用");
        return "消息来自order-service2";
    }
}
